package cn.sykj.car.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 菜单-功能权限按钮配置
 * </p>
 *
 * @author yixu
 * @since 2020-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = false)
@ApiModel(value="MenuOperationConfig对象", description="菜单-功能权限按钮配置")
public class MenuOperationConfig extends Model<MenuOperationConfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "菜单id")
    private Integer menuId;

    @ApiModelProperty(value = "权限名")
    private String operationName;

    @ApiModelProperty(value = "权限值")
    private String operationValue;

    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Integer delFlag;

    public static final String ID = "id";

    public static final String MENU_ID = "menu_id";

    public static final String OPERATION_NAME = "operation_name";

    public static final String OPERATION_VALUE = "operation_value";

    public static final String DEL_FLAG = "del_flag";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
